package com.wisdudu.blank.data.bean;

import com.kelin.mvvmlight.base.ViewModel;
import com.kelin.mvvmlight.collectionadapter.ItemView;
import com.wisdudu.blank.R;

import java.util.List;

import io.realm.RealmList;
import io.realm.RealmObject;
import io.realm.annotations.Ignore;
import io.realm.annotations.PrimaryKey;


/**
 * Created by qyf on 2016/7/11.
 */
public class SystemImg extends RealmObject implements ViewModel {

    /**
     * groupname : 宠物
     * photo : [{"photoid":"1","title":"宠物1","thumbimg":"http://wisdudu.oss-cn-shenzhen.aliyuncs.com/cw_o_1.jpg","originalimg":"http://wisdudu.oss-cn-shenzhen.aliyuncs.com/cw_o_1.jpg","groupid":"1","groupname":"宠物","visible":"1"},{"photoid":"2","title":"宠物2","thumbimg":"http://wisdudu.oss-cn-shenzhen.aliyuncs.com/cw_o_2.jpg","originalimg":"http://wisdudu.oss-cn-shenzhen.aliyuncs.com/cw_o_2.jpg","groupid":"1","groupname":"宠物","visible":"1"},{"photoid":"3","title":"宠物3","thumbimg":"http://wisdudu.oss-cn-shenzhen.aliyuncs.com/cw_o_3.jpg","originalimg":"http://wisdudu.oss-cn-shenzhen.aliyuncs.com/cw_o_3.jpg","groupid":"1","groupname":"宠物","visible":"1"},{"photoid":"4","title":"宠物","thumbimg":"http://wisdudu.oss-cn-shenzhen.aliyuncs.com/cw_o_4.jpg","originalimg":"http://wisdudu.oss-cn-shenzhen.aliyuncs.com/cw_o_4.jpg","groupid":"1","groupname":"宠物","visible":"1"},{"photoid":"5","title":"宠物","thumbimg":"http://wisdudu.oss-cn-shenzhen.aliyuncs.com/cw_o_5.jpg","originalimg":"http://wisdudu.oss-cn-shenzhen.aliyuncs.com/cw_o_5.jpg","groupid":"1","groupname":"宠物","visible":"1"},{"photoid":"6","title":"宠物","thumbimg":"http://wisdudu.oss-cn-shenzhen.aliyuncs.com/cw_o_6.jpg","originalimg":"http://wisdudu.oss-cn-shenzhen.aliyuncs.com/cw_o_6.jpg","groupid":"1","groupname":"宠物","visible":"1"},{"photoid":"7","title":"宠物","thumbimg":"http://wisdudu.oss-cn-shenzhen.aliyuncs.com/cw_o_7.jpg","originalimg":"http://wisdudu.oss-cn-shenzhen.aliyuncs.com/cw_o_7.jpg","groupid":"1","groupname":"宠物","visible":"1"}]
     */
    @PrimaryKey
    private String groupname;
    @Ignore
    private List<PhotoEntity> photo;
    public RealmList<PhotoEntity> photoEntities = new RealmList<>();
    /**
     * photoid : 1
     * title : 宠物1
     * thumbimg : http://wisdudu.oss-cn-shenzhen.aliyuncs.com/cw_o_1.jpg
     * originalimg : http://wisdudu.oss-cn-shenzhen.aliyuncs.com/cw_o_1.jpg
     * groupid : 1
     * groupname : 宠物
     * visible : 1
     */
//    public final ObservableList<PhotoEntity> gridItemInfos = new ObservableArrayList<>();
    @Ignore
    public final ItemView itemView = ItemView.of(com.kelin.mvvmlight.BR.photoEntity, R.layout.item_system_img);

    public String getGroupname() {
        return groupname;
    }

    public void setGroupname(String groupname) {
        this.groupname = groupname;
    }

    public List<PhotoEntity> getPhoto() {
        return photo;
    }

    public void setPhoto(List<PhotoEntity> photo) {
        this.photo = photo;
    }

}
